﻿@{
	string FlowID = Request.QueryString["flowid"];
	string StepID = Request.QueryString["stepid"];
	string GroupID = Request.QueryString["groupid"];
	string TaskID = Request.QueryString["taskid"];
	string InstanceID = Request.QueryString["instanceid"];
	string DisplayModel = Request.QueryString["display"] ?? "0";
	string DBConnID = "06075250-30dc-4d32-bf97-e922cb30fac8";
	string DBTable = "AmHcReferenceMaterial";
	string DBTablePK = "ID";
	string DBTableTitle = "Name";
	if(InstanceID.IsNullOrEmpty()){InstanceID = Request.QueryString["instanceid1"];}
	YJ.Platform.Dictionary BDictionary = new YJ.Platform.Dictionary();
	YJ.Platform.WorkFlow BWorkFlow = new YJ.Platform.WorkFlow();
	YJ.Platform.WorkFlowTask BWorkFlowTask = new YJ.Platform.WorkFlowTask();
	string fieldStatus = BWorkFlow.GetFieldStatus(FlowID, StepID);
	LitJson.JsonData initData = BWorkFlow.GetFormData(DBConnID, DBTable, DBTablePK, InstanceID, fieldStatus, "{\"amhcreferencematerial.date\":\"yyyy-MM-dd\",\"amhcreferencematerial.validdate\":\"yyyy-MM-dd\"}");
	string TaskTitle = BWorkFlow.GetFromFieldData(initData, DBTable, DBTableTitle);
}
<link href="~/Scripts/FlowRun/Forms/flowform.css" rel="stylesheet" type="text/css" />
<script src="~/Scripts/FlowRun/Forms/common.js" type="text/javascript" ></script>
<input type="hidden" id="Form_ValidateAlertType" name="Form_ValidateAlertType" value="1" />
<input type="hidden" id="Form_TitleField" name="Form_TitleField" value="AmHcReferenceMaterial.Name" />
<input type="hidden" id="Form_DBConnID" name="Form_DBConnID" value="06075250-30dc-4d32-bf97-e922cb30fac8" />
<input type="hidden" id="Form_DBTable" name="Form_DBTable" value="AmHcReferenceMaterial" />
<input type="hidden" id="Form_DBTablePk" name="Form_DBTablePk" value="ID" />
<input type="hidden" id="Form_DBTableTitle" name="Form_DBTableTitle" value="Name" />
<input type="hidden" id="Form_AutoSaveData" name="Form_AutoSaveData" value="1" />
<textarea id="Form_DBTableTitleExpression" name="Form_DBTableTitleExpression" style="display:none;width:0;height:0;">标准物质-{Name}</textarea>
<script type="text/javascript">
	var initData = @Html.Raw(BWorkFlow.GetFormDataJsonString(initData));
	var fieldStatus = "1"=="@Request.QueryString["isreadonly"]" ? {} : @Html.Raw(fieldStatus);
	var displayModel = '@DisplayModel';
	$(window).load(function (){
		formrun.initData(initData, "AmHcReferenceMaterial", fieldStatus, displayModel);
	});
</script>
<p><input type="hidden" id="AmHcReferenceMaterial.CreateUId" name="AmHcReferenceMaterial.CreateUId" isflow="1" type1="flow_hidden" value="u_@YJ.Platform.Users.CurrentUserID.ToString()"/></p><p><br/></p><link href="~/Content/Theme/tablenew.css" rel="stylesheet"/><table class="flowformtable tableF table table-bordered" data-sort="sortDisabled" cellspacing="0" cellpadding="0" align="center"><tbody><tr class="firstRow"><th rowspan="1" colspan="2" valign="middle" align="center"><span class="title">标准物质信息</span></th></tr><tr><th class="titleT" rowspan="1" colspan="2" valign="middle" align="left"><p class="titleO">物品信息</p></th></tr><tr class="topTr"><td class="top" rowspan="1" colspan="1" valign="middle" align="left"><p class="txt">物品名称</p><input type="text" id="AmHcReferenceMaterial.Name" type1="flow_text" name="AmHcReferenceMaterial.Name" value="" valuetype="0" isflow="1" class="mytext" title="" align="left"/></td><td class="top" rowspan="1" colspan="1" valign="middle" align="left"><p class="txt">LOT</p><input type="text" id="AmHcReferenceMaterial.LOT" type1="flow_text" name="AmHcReferenceMaterial.LOT" value="" valuetype="0" isflow="1" class="mytext" title="" align="left"/></td></tr><tr><td rowspan="1" colspan="1" valign="middle" align="left"><p class="txt">规格、型号</p><input type="text" id="AmAssets.Specs" type1="flow_text" name="AmAssets.Specs" value="" valuetype="0" isflow="1" class="mytext" title="" align="left"/></td><td rowspan="1" colspan="1" valign="middle" align="left"><p class="txt">计量单位</p><input type="text" id="AmAssets.MeasureUnit" type1="flow_text" name="AmAssets.MeasureUnit" value="" valuetype="0" isflow="1" class="mytext" title="" align="left"/></td></tr><tr><td rowspan="1" colspan="1" valign="middle" align="left"><p class="txt">浓度值</p><input type="text" id="AmHcReferenceMaterial.Concentration" type1="flow_text" name="AmHcReferenceMaterial.Concentration" value="" valuetype="4" isflow="1" class="mytext" title="" align="left"/></td><td rowspan="1" colspan="1" valign="middle" align="left"><p class="txt">保存条件</p><input type="text" id="AmHcReferenceMaterial.Condition" type1="flow_text" name="AmHcReferenceMaterial.Condition" value="" valuetype="0" isflow="1" class="mytext" title="" align="left"/></td></tr><tr><td rowspan="1" colspan="1" valign="middle" align="left"><p class="txt">是否有证书</p><select class="myselect" id="AmHcReferenceMaterial.IsCredential" name="AmHcReferenceMaterial.IsCredential" isflow="1" type1="flow_select">@Html.Raw(BDictionary.GetOptionsByID("b0f05080-8606-4828-8fee-f60b4dfdd2e2".ToGuid(), YJ.Platform.Dictionary.OptionValueField.Value, "", true))</select></td><td rowspan="1" colspan="1" valign="middle" align="left"><p class="txt">证书单位</p><input type="text" id="AmAssets.FixedAssetCode" type1="flow_text" name="AmAssets.FixedAssetCode" value="" valuetype="0" isflow="1" class="mytext" title="" align="left"/></td></tr><tr><td rowspan="1" colspan="1" valign="middle" align="left"><p class="txt">证书自编号</p><input type="text" id="AmHcReferenceMaterial.CredentialCode" type1="flow_text" name="AmHcReferenceMaterial.CredentialCode" value="" valuetype="0" isflow="1" class="mytext" title="" align="left"/></td><td rowspan="1" colspan="1" valign="middle" align="left"><p class="txt">是否验收</p><select class="myselect" id="AmHcReferenceMaterial.Status" name="AmHcReferenceMaterial.Status" isflow="1" type1="flow_select">@Html.Raw(BDictionary.GetOptionsByID("b0f05080-8606-4828-8fee-f60b4dfdd2e2".ToGuid(), YJ.Platform.Dictionary.OptionValueField.Value, "aa486ee2-090b-4ee7-970a-0cd72e9a5f95", true))</select></td></tr><tr><td rowspan="1" colspan="1" valign="middle" align="left"><p class="txt">定值日期</p><input type="text" type1="flow_datetime" id="AmHcReferenceMaterial.Date" name="AmHcReferenceMaterial.Date" value="@(YJ.Utility.DateTimeNew.ShortDate)" format="yyyy-MM-dd" defaultvalue="%40(YJ.Utility.DateTimeNew.ShortDate)" istime="1" daybefor="0" dayafter="0" currentmonth="0" isflow="1" class="mycalendar" title=""/></td><td rowspan="1" colspan="1" valign="middle" align="left"><p class="txt">截至有效期日期</p><input type="text" type1="flow_datetime" id="AmHcReferenceMaterial.ValidDate" name="AmHcReferenceMaterial.ValidDate" value="" format="yyyy-MM-dd" defaultvalue="" istime="1" daybefor="0" dayafter="0" currentmonth="0" isflow="1" class="mycalendar" title=""/></td></tr><tr><td rowspan="1" colspan="2" valign="middle" align="left"><p class="txt">证书附件</p><input type="text" type1="flow_files" id="AmHcReferenceMaterial.CredentialFiles" name="AmHcReferenceMaterial.CredentialFiles" value="" filetype="" isflow="1" class="myfile" title=""/></td></tr><tr><td rowspan="1" colspan="2" valign="middle" align="left"><p class="txt">保存地点</p><textarea isflow="1" type1="flow_textarea" id="AmHcReferenceMaterial.Address" name="AmHcReferenceMaterial.Address" class="mytext" style="height:40px;"></textarea></td></tr><tr class="bottomTr"><td class="bottom" rowspan="1" colspan="2" valign="middle" align="left"><p class="txt">备注</p><textarea isflow="1" type1="flow_textarea" id="AmHcReferenceMaterial.Remark" name="AmHcReferenceMaterial.Remark" class="mytext" style="height:40px;"></textarea></td></tr></tbody></table>